package com.ruoyi.pack.constant;

/**
 * Pack模块常量信息
 * 
 * @author ruoyi
 */
public class PackConstants
{
    /** 围栏操作类型 */
    public static final String FENCE_OPERATION_CREATE = "create";
    public static final String FENCE_OPERATION_UPDATE = "update";
    public static final String FENCE_OPERATION_DELETE = "delete";

    /** 围栏类型 */
    public static final String FENCE_TYPE_POLYGON = "1";  // 多边形围栏
    public static final String FENCE_TYPE_CIRCLE = "2";   // 圆形围栏

    /** Pack模块错误码 */
    public static final int ERROR_WAREHOUSE_CODE_EXISTS = 10001;
    public static final int ERROR_WAREHOUSE_NOT_EXISTS = 10002;
    public static final int ERROR_WAREHOUSE_HAS_CONTAINERS = 10021;
    public static final int ERROR_FENCE_POINTS_INSUFFICIENT = 10022;
    public static final int ERROR_FENCE_NOT_EXISTS = 10023;
    public static final int ERROR_FENCE_OPERATION_NOT_SUPPORTED = 10024;
    public static final int ERROR_FENCE_COORDINATE_FORMAT = 10025;
    public static final int ERROR_FENCE_CONFIG_CONFLICT = 10026;
    public static final int ERROR_FENCE_OPERATION_PERMISSION = 10027;

    /** 围栏坐标点最小数量 */
    public static final int FENCE_MIN_POINTS = 3;
} 